package org.rednebula.simple.model.eo;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.rednebula.framework.core.IEnvironment;
import org.rednebula.framework.core.model.eo.BasicEO;
import org.springframework.context.annotation.Scope;


@Entity
@Table(name="Person")
@Scope("prototype")

public class Person extends BasicEO  {
	String name;
	String education;
	String sex;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getEducation() {
		return education;
	}
	public void setEducation(String education) {
		this.education = education;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	@Override
	public void create(IEnvironment env) {
		this.getHibernateService(env).save(this);
	}
	@Override
	public void modify(IEnvironment env) {
		this.getHibernateService(env).update(this);
	}
}
